﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="repass.aspx.cs" Inherits="ProjectX.repass" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>找回密码</title>
    <link href="/WebCss/base.css" rel="stylesheet" type="text/css" />
    <link href="/WebCss/regandlog.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/ClientJs/jquery.js"></script>
    <style type="text/css">
        .divbody
        {
            background:url("/Webimg/getpass.png") no-repeat;  
        }      
        input[type="text"]
        {
            width:180px;
        }
    </style>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $("input:text:first").focus();
            $(document).keydown(function () {
                if (event.keyCode == 13) {
                    $("#enter").click();
                }
            });
        });
    </script>
</head>
<body>
    <div class="divbody">
        <div id="regheader" class="header">
            <a href="/login.html" target="_self">[登录]</a>
            <a>|</a>
            <a href="/" target="_self">[返回首页]</a>
        </div>
        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div id="repassdiv" class="reglogdiv">
                    <div>请填写您的用户名,我们会发送邮件到您的注册邮箱中</div>
                    <div style="margin-top:30px;margin-bottom:10px;">
                        <span>用户名</span>
                        <asp:TextBox ID="username" runat="server" CssClass="maintextcss" style="margin:0 10px;"></asp:TextBox>
                        <asp:ImageButton ID="enter" runat="server" ImageUrl="~/Webimg/enter.png" 
                            style="vertical-align:middle;" onclick="enter_Click" />
                    </div>
                    <div style="padding-left:125px;text-align:left;">
                        <asp:RequiredFieldValidator ID="usernameValidator" runat="server" 
                            ErrorMessage="请填写用户名" ControlToValidate="username" CssClass="error"></asp:RequiredFieldValidator>
                    </div>
                </div>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="enter" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>

        </form>
    </div>
</body>
</html>
